package pers.ree.demo.designpattern.factory.factorymethod;

public class Pig extends AbstractAnimal {

    public Pig(String color) {
        this.color = color;
    }

    @Override
    public void setPrice(long price) {
        this.price = price * 5;
    }

    @Override
    public void printAnimalInfo() {
        System.out.println("pig color is " + color + ", price is " + price);
    }
}
